<!--返回上一级-->
<template>
  <div class="goback" @click="goback">返回上一页</div>
</template>
<script>
export default {
  data() {
    return {};
  },
  filters: {},
  created() {},
  mounted() {},
  methods: {
    // 返回列表
    goback() {
      //   let path = this.$route.query.path;
      //   if (path == 1) {
      //     this.$router.push({
      //       path: "/allArticle",
      //       query: { articleType: this.$route.query.articleType },
      //     });
      //   } else {
      //     this.$router.push("/home");
      //   }
      this.$router.back();
      this.$emit("goback");
    },
  },
  components: {},
};
</script>

<style scoped lang="scss">
.goback {
 /* position: fixed;
  top: 0;*/
  width: 100%;
  height: 60px;
  font-size: 16px;
  color: #333333;
  line-height: 60px;
  cursor: pointer;
  background: #fff;
  z-index: 9;
}
</style>
